
public abstract class Collidable {

	Point currentPosition;
	float radius;
	
	public boolean checkCollision(Collidable collidable)
	{
		float lowx = (int)currentPosition.getX() - radius;
		float lowy = (int)currentPosition.getY() - radius;
		float highx = (int)currentPosition.getX() + radius;
		float highy = (int)currentPosition.getY() + radius;
		if((collidable.getCurrentPosition().getX() >= lowx) && (collidable.getCurrentPosition().getX() <= highx))
		{
			if(collidable.getCurrentPosition().getY() >= lowy && collidable.getCurrentPosition().getY() <= highy)
			{
				return true;
			}
		}
		return false;
	}
	public Point getCurrentPosition()
	{
		return currentPosition;
	}
	public void stopMovement(Collidable c){};
	
	public void addMovement(MovementPacket packet){};
	
	public void damage(float dmg){};
	
	public void forceMovement(MovementPacket packet){};
	
	public void onCollision(Collidable c){};
}
